@extends('admin.common.main')

@section('content')

    <form action="{{route('admin.user.role',$user)}}" method="post">

        @csrf
        @foreach($data as $val)
            <div>
                <input type="radio" value="{{$val['id']}}" name="role_id"
                       @if($val['id']  ==  $user['role_id']  /* 或 == $currentRoleID */) checked  @endif>

                {{$val['html']}}{{$val['name']}}

            </div>

        @endforeach

        <button type="submit">提交</button>
    </form>

@endsection


